﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Diagnostics;

using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;

namespace vengeful_bean
{
    class character: GameObject
    {

      
        //The coordinates where the test sprite begins
        //The speed of the sprite
        Vector2 spriteSpeed;
        KeyboardState key = Keyboard.GetState();


        public character(Microsoft.Xna.Framework.Content.ContentManager Content)
        {
            // TODO: Complete member initialization
             texture = Content.Load<Texture2D>(@"images\sprite1");
             Debug.WriteLine(texture);
        }

        
        public override void update(GameTime gametime)
        {
            if (key.IsKeyDown(Keys.Up))
                position.Y = spriteSpeed.Y;
            else if (key.IsKeyDown(Keys.Down))
                position.Y = -(spriteSpeed.Y);


        }


        public override void draw(GameTime gametime, SpriteBatch spritebatch)
        {
            
            spritebatch.Draw(this.texture, this.position, Color.White);
            //base.Draw(gametime);

        }
        

    }
}
